<template>
  <el-dialog title="患者报告" :visible="value" width="1000px" custom-class="dialog-box" @close="onClose" @open="onOpen" :close-on-click-modal="false" :append-to-body="true">
    <reportRecord v-if="show" :cureId="cureId" :patientId="patientId"></reportRecord>
  </el-dialog>
</template>
<script>
export default {
  props: ["value", "cureId", "patientId"],
  components: {
    reportRecord: () => import("@/pages/_com/reportRecord.vue")
  },
  data() {
    return {
      show: false
    };
  },
  methods: {
    onOpen() {
      const th = this;
      th.show = true;
    },
    onClose() {
      const th = this;
      th.show = false;
      th.$emit("input", false);
    }
  }
};
</script>